﻿@model Etest.Models.Test

@{
    ViewBag.Title = "Create";
}

<div class="container">
	<div class="row">
	<div class="col-md-4">
    <div class="jumbotron" style="font-size: 15px;">
        <ul class="nav nav-pills nav-stacked">
            <li class="active">  @Html.ActionLink("Закажи тест", "Create","ControlPanel")</li>
            
        <//ul>

    </div>
	</div>
	<div class="col-md-8">
	<div class="jumbotron" style="font-size: 10px;">

<h2>Креирај</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Тест</legend>

            @Html.Hidden("professorId")

        <div class="editor-label">
            @Html.LabelFor(model => model.courseId, "Курс")
        </div>
        <div class="editor-field">
            @Html.DropDownList("courseId", String.Empty)
            @Html.ValidationMessageFor(model => model.courseId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateFrom, "Дата од")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dateFrom)
            @Html.ValidationMessageFor(model => model.dateFrom)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.dateDue,"Дата до")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.dateDue)
            @Html.ValidationMessageFor(model => model.dateDue)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.number_of_questions,"Број на прашања")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.number_of_questions)
            @Html.ValidationMessageFor(model => model.number_of_questions)
        </div>

        <p>
            <input type="submit" class="btn btn-primary btn-large" value="Креирај" />
        </p>
    </fieldset>
}

     </div>
    </div>
    </div>	
	</div>
